package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@Setter
@Getter
@ToString
public class Member {
    public static final String DEFAULT_PASSWORD = "000";
    private Long id;

    private String cardSn;

    private String username;

    private String password="0";

    private Level level;

    private String qq;

    private String email;

    private Employee inputUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String tel;

    private  Gender gender;

    private Group mgroup;

    private String wechat;

    private String address;

    private String interest;

    private Member recommender;

    private String remark;

    private String tips;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rechargeTime;

    private String imagePath;

    private State state;

    private Tag tag;

    private Integer accumulation;

    private Resource resource;

    private Shop shop;

    private BigDecimal initAccount;

    private BigDecimal giftAccount;

    private BigDecimal totalAccount;

    private BigDecimal consume;

    private  Payway payway;



}